package com.example.houtai.service.impl;

import com.example.houtai.entity.SysMenu;
import com.example.houtai.mapper.SysMenuMapper;
import com.example.houtai.service.ISysMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单管理 服务实现类
 * </p>
 *
 * @author 龚梦
 * @since 2021-03-22
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements ISysMenuService {

    @Autowired
    private SysMenuMapper sysMenuMapper;
    @Override
    public List<SysMenu> selectMenu() {
        List<SysMenu> list=sysMenuMapper.selectMenu();
        return list;
    }

    @Override
    public List<SysMenu> rolemenuList(String token) {
        return sysMenuMapper.rolemenuList(token);
    }

}
